package com.zxy.ziems.server.alarm.service;

import com.zxy.ziems.server.alarm.pojo.entity.AlarmRuleRangeEntity;
import com.zxy.ziems.server.alarm.pojo.vo.AlarmRuleRangeVO;

import java.util.List;
import java.util.Set;

/**
 * @Copyright (C),
 * @ClassName: AlarmRuleRangeService
 * @Author: yanzhiwei
 * @Description:
 * @Date: 2024/4/10 15:49
 */
public interface AlarmRuleRangeService {


    /**
     * 保存告警通知范围
     *
     * @param ruleId
     * @param alarmRuleRangeEntityList
     */
    void saveOrUpdateAlarmRuleRange(String ruleId, List<AlarmRuleRangeEntity> alarmRuleRangeEntityList);

    /**
     * 删除告警通知范围
     *
     * @param ruleId
     */
    void deleteAlarmRuleRangeByRuleId(String ruleId);

    List<AlarmRuleRangeVO> listByIdList(Set<String> ruleIdSet);

    List<AlarmRuleRangeEntity> listByAlarmType(String deviceTypeCode, String alarmTypeId);
}
